<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>微app</title>

		<!-- Bootstrap -->
		<link href="/weiapp/Public/css/bootstrap.min.css" rel="stylesheet">
		<link href="/weiapp/Public/css/weiapply.css" rel="stylesheet">

		<link rel="stylesheet" href="/weiapp/Public/css/menu.css" type="text/css" media="screen">
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
		<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
		<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<script src="/weiapp/Public/js/jquery-1.11.0.js"></script>
		<!-- Include all compiled plugins (below), or include individual files as needed -->
		<script src="/weiapp/Public/js/bootstrap.min.js"></script>
		<script src="/weiapp/Public/js/weiapp.js"></script>
	</head>
	<body>
		<!-- 头部 -->
		<div id="head-container" class="container-fluid weiapply-header">
		    <img src="/weiapp/Public/img/top_logo.png" />weiapply.cn
<ul class="nav navbar-nav navbar-right public_sd">
        <li class="dropdown">
          <a href="/weiapp/index.php/Home/MemberPublic/nowpub?id=<?php echo ($_SESSION['now_pub']['id']); ?>" class="dropdown-toggle a" data-toggle="dropdown"><?php echo ($_SESSION['now_pub']['public_name']); ?><span class="caret"></span></a>
          <ul class="dropdown-menu menu_color" role="menu">
            <?php if(is_array($menu_p_list)): $i = 0; $__LIST__ = $menu_p_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu_p_list): $mod = ($i % 2 );++$i; if($menu_p_list['id'] != $_SESSION['now_pub']['id']): ?><li><a href="/weiapp/index.php/Home/MemberPublic/nowpub?id=<?php echo ($menu_p_list['id']); ?>"><?php echo ($menu_p_list['public_name']); ?></a></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
          </ul>
        </li>
</ul>
<ul class="nav navbar-nav navbar-right sd">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle a" data-toggle="dropdown"><?php echo ($_SESSION['member']['email']); ?><span class="caret"></span></a>
          <ul class="dropdown-menu menu_color" role="menu">
            <li><a href="#">修改密码</a></li>
            <li><a href="/weiapp/index.php/Home/Public/logout">退出</a></li>
          </ul>
        </li>
</ul>

		</div>
		<!-- /头部 -->

		<!-- 主体 -->
		<div id="main-container" class="container-fluid">
			<div class="row main-content">
				<!-- 左菜单 -->
				<div class="col-xs-5 col-sm-4 col-md-3 col-lg-2 menu">
					<ul id="nav" style="margin:10px auto 0 auto;">
    <?php if(is_array($public_menu_c_lists)): $i = 0; $__LIST__ = $public_menu_c_lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p_m): $mod = ($i % 2 );++$i;?><li>
		<a href="#" class="sub" tabindex="1">
			<span class="caret"></span>&nbsp;<?php echo ($p_m["name"]); ?>
		</a>
		<ul>
		<?php if(is_array($p_m["item"])): $i = 0; $__LIST__ = $p_m["item"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><li>
				<a href="<?php echo ($item["url"]); ?>?public_id=<?php echo ($_SESSION['now_pub']['public_id']); ?>">
					<?php echo ($item["name"]); ?>
				</a>
			</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
				</div>
				<!-- /左菜单 -->
				<!-- 内容主体 -->
				<div class="col-xs-7 col-sm-8 col-md-9 col-lg-10 content">
			    	
<link rel="stylesheet" type="text/css" href="/weiapp/Public/css/page.css" /> 
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 main-body">
		<ul>
		
			<li>
				<a href="/weiapp/index.php/Home/MemberPublic/allplug" class="btn btn-primary">
					所有插件
				</a>
			</li>
			<li>
				<a href="/weiapp/index.php/Home/MemberPublic/installedplug" class="btn btn-primary">
					已安装插件
				</a>
			</li>
			<li class="m_p" style="float:left;"><span class="glyphicon glyphicon-th"></span>所有插件</li>
		</ul>
	</div>
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid public_list allplug_font_size">
		<div class="text-danger bg-info col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid manu">
		&nbsp;<?php echo ($page); ?>
		</div>
		<div class="table-responsive">
			<form>
				<table class="table-bordered table table-hover">
					<tr class="bg-danger">
						<td class="col-xs-2">名称</td>
						<td class="col-xs-8">描述</td>
						<td class="col-xs-1">状态</td>
						<td class="col-xs-1">操作</td>
					</tr>
					<?php if(is_array($plug_list)): $i = 0; $__LIST__ = $plug_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$plug_list): $mod = ($i % 2 );++$i;?><tr>
						<td><?php echo ($plug_list["plug_name"]); ?></td>
						<td><?php echo ($plug_list["intraduce"]); ?></td>
						<td>
						<?php if($plug_list["installed"] == 1): ?><font color="#783243">已安装</font>
						<?php else: ?>
						<font color="red">未安装</font><?php endif; ?>
						</td>
						<td align="center">
						<?php if($plug_list["installed"] == 1): ?><button class="btn btn-small disabled ">
					                已安装
				        </button>
						<?php else: ?>
						<button class="btn btn-primary btn-small" onclick="install_plug(<?php echo ($plug_list["id"]); ?>)">
					                安装
				        </button><?php endif; ?>
						</td>
					</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				</table>
			</form>
		</div>
		<div class="bg-info col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid public_list manu">
		&nbsp;<?php echo ($page); ?>
		</div>
	</div>

				</div>
				<!-- /内容主体 -->
			</div>
		</div>
		<!-- /主体 -->
	</body>
</html>